package com.example.spinning.mapper;

import com.example.spinning.bean.Category;
import com.example.spinning.bean.Organ;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 机构管理
 */
@Mapper
public interface OrganMapper {

    List<Organ> getSpecificOrgans(@Param("start") Integer start,
                                  @Param("count") Integer count,
                                  @Param("organ") Organ organ

                                  );

    List<Organ> getAllOrgans();

    int deleteOrganByIds(@Param("ids") String[] ids);

    int updateOrganById(Organ organ);

    int addOrgan(Organ organ);

    //由名字查询表的行数
    int getOrganCountByCondition(Organ organ);

}
